import redis

# For standalone use.

REDIS_CLS = redis.StrictRedis
REDIS_ENCODING = 'utf-8'
# Sane connection defaults.
REDIS_PARAMS = {
    'socket_timeout': 30,
    'socket_connect_timeout': 30,
    'retry_on_timeout': True,
    'encoding': REDIS_ENCODING,
}

START_URLS_KEY = 'scrapy:task:%(name)s:start_urls'
START_URLS_AS_SET = False
START_URLS_AS_ZSET = True
MAX_IDLE_TIME = 0
